//import angular core
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';

//import my mudules
import { PhotoModule } from './photo/photo.module';

const routes: Routes = [
    {
        path: 'photo',
        loadChildren:'app/photo/photo.module#PhotoModule'
    }
];

@NgModule({
    imports: [RouterModule.forRoot(routes)],
    exports: [RouterModule]
})

export class AppRoutingModule { }
